package cn.usian.dao;

import cn.usian.pojo.SetmealDish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealDishDao extends BaseMapper<SetmealDish> {

    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void delDishSetmeal(Long id);

    @Select("select * from setmeal_dish where setmeal_id=#{categoryId}")
    List<SetmealDish> findList(Long id);
}
